cmake_minimum_required(VERSION 2.8 FATAL_ERROR)   

set(CMAKE_BUILD_TYPE "Debug")
include_directories(${PROJECT_SOURCE_DIR}/)
message(" PROJECT_SOURCE_DIR: ${PROJECT_SOURCE_DIR}")

set(exec_name "my_client")

#add_compile_options("-include common.h")
set( common_flags "")
set(CMAKE_CXX_FLAGS         " ${CMAKE_CXX_FLAGS} -std=c++11 ${common_flags}")
set(CMAKE_C_FLAGS           " ${CMAKE_C_FLAGS} ${common_flags}")

set(EXECUTABLE_OUTPUT_PATH ${BIN_PATH})

set(main_src_list  
    ${PROJECT_SOURCE_DIR}/src/main.cpp
    )

add_subdirectory(${PROJECT_SOURCE_DIR}/src/core)

set(all_libs
    client_core
    glog
    )

add_executable(
    ${exec_name}
    ${main_src_list}
    )

target_link_libraries(
    ${exec_name}
    ${all_libs}
    )
